import React from 'react'

const LazyLoat=(path)=>{
    const Comp = React.lazy(() => import(`../../routes/sandbox${path}`))
    return (
        <React.Suspense fallback={<div>加载中</div>}>
            {Comp}
        </React.Suspense>
    )
}

export default LazyLoat
